package easymall.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import easymall.po.Order;
import easymall.pojo.MyPage;

@Repository("orderDao")
@Mapper
public interface OrderDao {
	public void addOrder(Order order);
	public List<Order> findOrderByUserId(Integer user_id);
	public void delOrder(String id);
	public void payOrder(String id); //修改订单的状态从未付款->未发货
	public void confirmOrder(String id);//修改订单的状态从已发货-已完成（确认收货）
	public void sendOrder(Order order);
	
	public List<Order> getOrdersByPage(MyPage page); //查询所有订单
	public int getOrdersCount();//获取总分类数
	public Order getOrderById(String id);//根据订单号获取订单信息
	
	public List<Order> findAllOrders();
	
}
